package java_class_work.week08.internet.upimage1;

import java.io.IOException;
import java.net.ServerSocket;

/**
 * @Author Tiam
 * @Date 2022/11/1 15:34
 * @Description:
 */
public class TcpServerMain {
    public static void main(String[] args) {
        try {
            ServerSocket serverSocket = new ServerSocket(8888);
            while (true){
                TcpServerThread1 tcpServerThread1 = new TcpServerThread1(serverSocket.accept());
                new Thread(tcpServerThread1).start();
            }
            
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
